package com.whfc.fuum.dao;

import com.whfc.fuum.dto.SysUserCodeDTO;
import com.whfc.fuum.entity.SysUserCode;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUserCodeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysUserCode record);

    int insertSelective(SysUserCode record);

    SysUserCode selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUserCode record);

    int updateByPrimaryKey(SysUserCode record);

    /**
     * 通过code查找
     *
     * @param code
     * @return
     */
    SysUserCodeDTO selectByCode(@Param("code") String code);
}